import request from '@/util/request'

export function insertDeviceView(data) {
  return request({
    url: '/iot/device/view/insert',
    method: 'post',
    data
  })
}

export function updateDeviceView(data) {
  return request({
    url: '/iot/device/view/update',
    method: 'post',
    data
  })
}

export function insertOrUpdateDeviceView(data) {
  return request({
    url: '/iot/device/view/insertOrUpdate',
    method: 'post',
    data
  })
}

export function getDeviceView(data) {
  return request({
    url: '/iot/device/view/get',
    method: 'post',
    data
  })
}

export function deleteDeviceView(data) {
  return request({
    url: '/iot/device/view/delete',
    method: 'post',
    data
  })
}

